<script>
	var pnum = {$pnum};
	{if condition="(isset($filter)) AND ($filter)"}
	var filter = {$filter};
	{/if}
	{if condition="(!isset($search)) OR (!$search)"}
	var search = 0;
	var goUrl = "/{$Request.module}/group_buy/lst/filter/"+filter+".html?page="+pnum;
	{else/}
	var search = {$search};
	var goUrl = "/{$Request.module}/group_buy/search.html?page="+pnum;
	{/if}
</script>    

                  
                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th style="width:5%">状态</th>
                                    <th style="width:15%">团购名称</th>
                                    <th style="width:25%">商品信息</th>
                                    <th style="width:10%">团购价</th>
                                    <th style="width:15%">开始时间</th>
                                    <th style="width:15%">结束时间</th>
                                    <th style="width:5%">推荐</th>
                                    <th style="width:15%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            {if condition="!empty($list)"}
							{foreach name="list" item="v"}
                                <tr>
                                    <td>
                                    {if condition="$v['zhuangtai'] eq 1"}
                                    <span style="color:#1c84c6;">待审核</span>
                                    {elseif condition="$v['zhuangtai'] eq 2"/}
                                    <span style="color:#1c84c6;">即将开始</span>
                                    {elseif condition="$v['zhuangtai'] eq 3"/}
                                    <span style="color:#1c84c6;">团购中</span>
                                    {elseif condition="$v['zhuangtai'] eq 4"/}
                                    <span style="color:#1992FC;">已结束</span>
                                    {elseif condition="$v['zhuangtai'] eq 5"/}
                                    <span style="color:#ed5565;">平台已关闭</span>
                                    {/if}
                                    </td>
                                    <td>{$v.group_name}</td>
                                    <td>{$v.goods_name}&nbsp;&nbsp;{$v.goods_attr_str}</td>
                                    <td>{$v.price}</td>
                                    <td>{:date('Y-m-d H:i:s',$v['start_time'])}</td>
                                    <td>{:date('Y-m-d H:i:s',$v['end_time'])}</td>
                                    <td>{if condition="$v['recommend'] eq 1"}是{elseif condition="$v['recommend'] eq 0"/}否{/if}</td>
                                    <td>     
                                    <button type="button" class="btn btn-info btn-xs" onclick="group_info({$v.id},this);"><i class="fa fa-paste"></i>&nbsp;详细</button>&nbsp;&nbsp;&nbsp;&nbsp;                                         
                                    <button type="button" class="btn btn-danger btn-xs" onclick="delone({$v.id},this);"><i class="fa fa-close"></i>&nbsp;删除</button>
                                    </td>
                                </tr>
							{/foreach}
							{else/}
							<tr><td colspan="8" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>
							{/if}				
                            </tbody>
                        </table>
                        <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>